<?php
/**
 * Created by PhpStorm.
 * @author WYZ <wyz@jungo.com.cn>
 * @copyright 深圳市俊网网络有限公司
 */

namespace Selibra\Command;


use Swoole\Process;

class ServerProcessMessageListener
{

    /**
     * @param $pid
     * @param Process $process
     * @param $serverClass
     */
    public function listener($pid,Process $process,$serverClass)
    {
        go(function ()use($pid,$process,$serverClass){
            while (true){
                $result = $process->pop();
                var_dump($result);
            }
        });
    }

}